package com.firewolf.vue.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.List;

/**
 * 作者：刘兴
 * 时间:19/3/6
 **/
@RestController
@RequestMapping("/shop")
public class ShopController {

    @GetMapping("/list")
    public List<String> list() {
        return Arrays.asList("手机", "电脑", "手表");
    }
}
